/**
 * @create 2022-04-05
 * @desc messages
 */

import { message } from 'antd';

export const handleError = (e?: Error | { message?: string }) => {
  message.error(e?.message || '请求失败');
};
